package com.zt.controller;

import com.zt.pojo.LogQuery;
import com.zt.pojo.PageResult;
import com.zt.pojo.Result;
import com.zt.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @GetMapping("/page")
    public Result findAll(LogQuery logquery) {
        PageResult pageResult = logService.findAll(logquery);
        return Result.success(pageResult);
    }
}
